< previous page page_19 next page >

Page 19
Visual Basic Application Components
When you start to create a Visual Basic application, you need to be familiar with the different types of disk files you can store. You can save many different types of files, depending on the type of application you create. The following sections discuss the files that make up the various types of Visual Basic applications you can create.
Projects
A Visual Basic project is a collection of forms, controls, references to automation servers, application creation settings, and version information. All these different components reside in separate files, and the project file contains a list of them all. A project file is an ASCII text file with a .VBP (Visual Basic Project) extension. Inside this file youll find a list of all the files that make up a project. If you combine multiple projects together, youll create a file with a .VBG extension. This is a list of other VBP files that will be loaded into the Visual Basic design environment at one time.
Forms
A form is a window thats displayed on the Windows desktop or inside an MDI form. A form generally has many different controls placed upon it. The form, its controls, and the code associated with the form are all stored together on the disk in a file with an .FRM extension. Any graphical items contained within picture type properties will be stored to an FRX file with the same name as the FRM file. If you have an FRX file, make sure you copy it along with the FRM file if you ever move the file to a new location.
Controls
A control is a tool used to display information or retrieve information from the user. Examples of controls are boxes, buttons, graphics, labels, and grids. The toolbox is used to select and then draw controls on a form. Controls come in two forms: standard controls and custom controls. The standard controls are always present in the toolbox. The custom controls are brought into the Visual Basic environment and extend the toolbox. Controls have a file extension of .OCX.

 
< previous page page_19 next page >

If you like this book, buy it!